export function getTimes() {
	const date = new Date();
	let hours = date.getHours();
	let minutes = date.getMinutes();
	let m = (''+minutes).length === 1 ? '0'+minutes : minutes
	return `${hours}:${m}`;
}

// 获取当天
export function getDate() {
	const date = new Date();
	let year = date.getFullYear();
	let month = date.getMonth() + 1;
	let day = date.getDate();
	month = month > 9 ? month : '0' + month;
	day = day > 9 ? day : '0' + day;
	return `${year}-${month}-${day}`;
}
export function getDay() {
  const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  const today = new Date();
  const dayOfWeek = weekDays[today.getDay()];
  return dayOfWeek
}
